import getlink from "@/api/getapi.js"
let home={
    state:{
        list:[]
    },
    mutations:{
        setlink(state,payload){
            state.list=payload
        }
    },
    actions:{
        pagelink(context,payload){
           getlink(payload).then((ok)=>{
            context.commit("setlink",ok.data.list)
           })
        }
    }
}
export default home